<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>表单练习</title>
</head>
<body>
   <form action="test_1.html" target="_blank" method="get">
     用户名：<input type="text" size="30" name="username"><br>
    密码：<input type="password" name="password"><br>
    <input type="radio" name="gender" id="gender1" value="0"><label for="gender1">男</label>
    <input type="radio" name="gender" id="gender2" value="1"><label for="gender2">女</label>
    <!-- 这里添加checked，则默认性别就是保密 -->
    <input type="radio" name="gender" id="gender3" checked value="3"><label for="gender3">性别保密</label><br>  
    爱好：<input type="checkbox" id="hobby1"  value="0" name="hobby"><label for="hobby1">篮球</label>
    <input type="checkbox" id="hobby2" value="1" name="hobby"><label for="hobby2">足球</label>
    <input type="checkbox" id="hobby3" value="2" name="hobby"><label for="hobby3">网球</label>
    <input type="checkbox" id="hobby4" value="3" name="hobby"><label for="hobby4">排球</label><br>
    专业：<select>
        <option value="1" selected>软件工程</option>
        <option value="2">计算机科学与技术</option>
        <option value="3">网络安全</option>
        <option value="4">物联网</option>
    </select><br>
    个人描述：<textarea rows="10" cols="50"></textarea>
    <input type="submit" value="提交">
   </form>
</body>
</html>